package control;
import view.MenuBoundary;

/**
 * The MenuController takes care of the menu in which the player decides whether the game should start
 * or the program end.
 */
public class MenuController 
{
	/**
	 * Runs the menu
	 */
	public void start()
	{
		int menuChoise;
		final int EXIT = 3;
		MenuBoundary menuBoundary = new MenuBoundary();
		
		do 
		{
			menuChoise = menuBoundary.menu();
			GameController gameController = new GameController();
			
			switch(menuChoise)
			{
			case 1:
				gameController.start(true);
				break;
				
			case 2:
				gameController.start(false);
				break;
				
			default:
				break;
				
			}
		}
		while(menuChoise != EXIT);
	}
}
